<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta charset="UTF-8">
  <title>Layui</title>
  <link rel="stylesheet" href="layui-v1.0.9_rls/css/layui.css">
  <style type="text/css">
    .state:after{
      content: '';
      visibility: hidden;
      width: 0;
      height: 0;
      border-left: 14px solid #000;
      border-top: 7px solid transparent;
      border-right: 14px solid transparent;
      border-bottom: 7px solid transparent;
    }
    
    .state:hover > .child{
      display: none;
    }

    .trans{
      display: inline-block;
      width: 0;
      height: 30px;
      background-color: #ccc;
      -webkit-transition: width 3s;
                    transition: width 3s;
    }

  </style>
</head>
<body>
<div>
  <div class="trans">transition</div>
  <div class="click">234234234</div>
</div>


  <script src=" https://code.jquery.com/jquery-3.2.1.js"></script>
  <script type="text/javascript" src="layui-v1.0.9_rls/lay/dest/layui.all.js"></script>
  <script type="text/javascript" src="index.js"></script>
  <script type="text/javascript">
    var form = layui.form();

    $('.click').click(function(){
      
      $('.trans').css('width', '100px');
    })
  </script>


</body>
</html>